#ifndef CIRCLE_H
#define CIRCLE_H

#include <QObject>
#include <QGraphicsItem>
#include <QPainter>
#include <QGraphicsScene>

class Circle: public QObject, public QGraphicsItem
{
    Q_OBJECT
public:
    explicit Circle(QObject *parent = 0);
    ~Circle();
    bool eaten();

private:
    int growth;

protected:
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

public slots:
    void slotTimeout();
};

#endif // CIRCLE_H
